/* ===========================================================
			Resonance
	NPC Name: 		Kisan
	Map(s): 		Queen's Path: Forest of the Start 3(130030002)
	Description: 	Quest - How to Hunt
=============================================================
Version 1.0 - Script Done.(16/6/2010)
=============================================================
*/

var status = -1;

function start(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
			qm.sendNext("You don't want to do it? It's really not that hard. Think it over and then talk to me. I even have a special equipment item as a reward.");
			qm.dispose();
			return;
		}
	}
	if(status == 0)
		qm.sendNext("There are various ways to hunt, but the most basic method is through #bregular attacks#k. All you need is a weapon on your hand, and you'll swing it around to cause damage.");
	if(status == 1)
		qm.sendNextPrev("Press #bC#k to make a regular attack. Usually it's located at the #bbottom left of the keyboard#k...you know where the button is, right?");
	if(status == 2)
		qm.sendAcceptDecline("Once you found the key, the next logical step is...to test it out, right? Around here, you'll find plenty of #r#o100120#s#k, the weakest creature in all of Erev. Come see me after succesfully hunting #r1#k of them.");
	if(status == 3){
		qm.forceStartQuest();
		qm.displayGuide(4);
		qm.dispose();
		}
	}
	
function end(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
		    qm.dispose();
			return;
		}
	}
	if(status == 0)
		qm.sendNext("Ah, you must have successfully defeated #o100120#. What do you think? Wasn't it easy? Regular attacks are easy to pull off, but it's also pretty weak. Normally people use powerful skills to subdue an enemy... and you'll learn to use those through my brother #p1102006#. In the mean time, here's the quest reward.");
	if(status == 1)
		qm.sendNextPrev("It's an equipment for the Nobless. It's more functional than just wearing regular clothes. It looks nicer, too. Anyway, follow the arrow to the left and find my younger brother .#b#p1102006##k. I suggest you change clothes to the gear I just gave you before meeting him.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i1002869# 1 #t1002869# \r\n#i1052177# 1 #t1052177# \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 30 exp");
	if(status == 2){
		qm.forceCompleteQuest();
		qm.gainItem(1002869, 1);
		qm.gainItem(1052177, 1);
		qm.gainExp(30);
		qm.displayGuide(6);
		qm.dispose();
	}
}
		